package com.liang.pojo;

import lombok.Data;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;

@Data
public class User {
    private String name;
    private String sex;
    @Autowired //自动装配
    @Qualifier(value = "address111")//根据name显示指定唯一的bean
    private Address address;
}
